from django.db import models

from account.models import User


class Task(models.Model):
    user = models.ForeignKey(User,on_delete=models.CASCADE,null=True)
    body = models.CharField(max_length=255,null=False,default=None)
    deadline = models.DateField(null=True)
    status = models.BooleanField(default=False)
    created = models.DateField(auto_now=True)

